﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PayInvoice.aspx.cs" Inherits="RLPUR.Web.PayInvoice" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>付款发票录入</title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Page">
            <div class="Title">
                <asp:Label ID="PageTitle" runat="server" Text="付款发票录入"></asp:Label>
            </div>
            <div class="Operating">
                <ul>
                    <li class="Caption">收货日期
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="DateFrom" runat="server" CssClass="Date"></asp:TextBox>
                    </li>
                    <li class="Caption">~
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="DateTo" runat="server" CssClass="Date"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">厂商代码
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="VenNo" runat="server"></asp:TextBox>
                    </li>
                    <li class="Caption">厂商名称
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="VenName" runat="server"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">工令号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="OrNo" runat="server"></asp:TextBox>
                    </li>
                    <li class="Caption">收货单号</li>
                    <li class="Content">
                        <asp:TextBox ID="RTNo" runat="server"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">请购单号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="PrNo" runat="server"></asp:TextBox>
                    </li>
                    <li class="">
                        <asp:RadioButtonList ID="IsKp" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="未开票" Value="N"></asp:ListItem>
                            <asp:ListItem Text="所有" Value="Y"></asp:ListItem>
                        </asp:RadioButtonList></li>
                    <li class="Content">
                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="IsTon" runat="server" Text="按吨位结算" ForeColor="Red" />
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Button">
                        <asp:Button ID="OKButton" runat="server" Text="查询"
                            OnClick="OKButton_Click" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消"
                            OnClick="CancelButton_Click" />
                        <asp:Button ID="CreateButton" runat="server" Text="发票录入"
                            CssClass="Highlighted" OnClick="CreateButton_Click" />
                        <asp:Button ID="SaveButton" runat="server" Text="保存"
                            CssClass="Highlighted" OnClick="SaveButton_Click" />
                        <asp:Button ID="ExportButton" runat="server" Text="导出"
                            CssClass="Highlighted" OnClick="ExportButton_Click" />
                    </li>
                </ul>
            </div>
            <div class="Operating" id="divInvoice" runat="server">
                <ul>
                    <li class="CaptionSmall">总金额</li>
                    <li class="ContentSmall">
                        <asp:TextBox ID="TotalAmt" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="CaptionMiddle">发票号码
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="KpNo" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="CaptionMiddle">发票金额
                    </li>
                    <li class="ContentSmall">
                        <asp:TextBox ID="KpAmt" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="CaptionMiddle">开票日期</li>
                    <li class="ContentMiddle">
                        <asp:TextBox ID="KpDate" runat="server" CssClass="Required Date"></asp:TextBox></li>
                    <li class="CaptionMiddle">最晚付款日期</li>
                    <li class="ContentMiddle">
                        <asp:TextBox ID="FinalDate" runat="server" CssClass="Required Date"></asp:TextBox></li>
                    <li class="LineFeed"></li>
                </ul>
            </div>
            <div class="List">
                <asp:Panel ID="panelTon" runat="server">
                    <ul>
                        <li class="Caption">吨位数量
                        </li>
                        <li class="Content">
                            <asp:TextBox ID="Tons" runat="server" Enabled="False"></asp:TextBox>
                        </li>
                        <li class="Caption">单价
                        </li>
                        <li class="Content">
                            <asp:TextBox ID="Price" runat="server" Enabled="False"></asp:TextBox>
                        </li>
                        <li class="Caption">金额
                        </li>
                        <li class="Content">
                            <asp:TextBox ID="Amt" runat="server" Enabled="False"></asp:TextBox>
                        </li>
                    </ul>
                </asp:Panel>
                <asp:GridView ID="List" runat="server" EmptyDataText="<%$ Resources:iiWeb, EmptyData %>"
                    EnableModelValidation="True" DataKeyNames="rtseq,rtvend" AllowPaging="False" OnRowDataBound="List_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input type="checkbox" id="RowCheckAll" runat="server" class="CheckAll" title="勾选" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input type="checkbox" id="RowCheck" runat="server" class="Check" title="勾选" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="rtrno" HeaderText="收货单号" />
                        <asp:BoundField DataField="rtcdte" HeaderText="收货日期" />
                        <asp:BoundField DataField="rtprno" HeaderText="订单号码" />
                        <asp:BoundField DataField="rtsono" HeaderText="工令号" />
                        <asp:BoundField DataField="rttno" HeaderText="工件图号" />
                        <asp:BoundField DataField="bomnam" HeaderText="工件名称" />
                        <asp:BoundField DataField="rtqact" HeaderText="数量" />
                        <asp:BoundField DataField="rtiump" HeaderText="单位" />
                        <asp:BoundField DataField="rtloc" HeaderText="单重" />
                        <asp:BoundField DataField="rtsumweight" HeaderText="总重" />
                        <asp:BoundField DataField="priceType" HeaderText="计价方式" />
                        <asp:BoundField DataField="prlpacst" HeaderText="单价" />
                        <asp:BoundField DataField="amt" HeaderText="金额" />
                        <asp:BoundField DataField="kpamt" HeaderText="已开票金额" />
                        <asp:BoundField DataField="rtinv" HeaderText="送货单号" />
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
